const fs = require('fs');

const v = `buildTime_${new Date()}`;
const json = JSON.stringify({
    success: true,
    code: 200,
    data: v
});

fs.writeFile('./dist/version.json', json, function(err, written, string) {
    if (err) {
        throw err;
    }
    console.log('设置版本信息成功');
});